Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <script> function writeMessage() { document.forms[0].mySecondInput.value = document.forms[0].myInput.value; } </script> </head> <body> <p>The onkeyup event occurs when the a keyboard key is on it's way UP.</p> <form> Enter your name: <input type="text" name="myInput" onkeyup="writeMessage()" size="20"> <input type="text" name="mySecondInput" size="20"> </form> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_events_onkeyup2 by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:37:15 GMT --> </html>
Result:
Try it Yourself - © w3schools.com